Beginning Swift Games Development for iOS by James Goodwill & Wesley Matlock

Beginning Swift Games Development for iOS by James Goodwill & Wesley Matlock

Author:James Goodwill & Wesley Matlock
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


This time the right side of the label is place at the point of the SKLabelNode’s position property, as shown in Figure 7-3.

Figure 7-3.A simple SKLabelNode example with its horizontalAlignmentMode set to SKLabelHorizontalAlignmentMode.left

Changing the Vertical Alignment of the Label Node

In the previous section, you saw how you can change the horizontal alignment of the SKLabelNode using SKLabelNode’s horizontalAlignmentMode property. In this section, you will see how you can change SKLabelNode’s vertical alignment.

Before getting starte d, go back to the GameScene.swift file and change its contents so they match Listing 7-3.

import SpriteKit



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.